package com.cci.kangdao.escalation.dao;

import com.cci.kangdao.escalation.model.EscalationSolutionT;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EscalationSolutionTDao {
    int deleteByPrimaryKey(Long id);

    int insert(EscalationSolutionT record);

    int insertSelective(EscalationSolutionT record);

    EscalationSolutionT selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EscalationSolutionT record);

    int updateByPrimaryKey(EscalationSolutionT record);

    List<EscalationSolutionT> getEscalationSolutionListByOrderId(@Param("orderId") Long orderId);

    List<EscalationSolutionT> getEscalationSolutionByOrderId(@Param("orderId") Long orderId);

    EscalationSolutionT getLastEscalationSolutionByOrderId(@Param("orderId") Long orderId);

    EscalationSolutionT getLastEscalationSolutionByOrderIdAndReasonId(@Param("orderId") Long orderId,@Param("reasonId") Long reasonId);
}